import argparse

from wenet.bin.train import get_args_for_windows, main
from gxl_ai_utils.utils import utils_file, utils_data


if __name__ == '__main__':
    # args = get_args_for_windows(
    #     config='conf/train_conformer.yaml',
    #     model_dir='exp',
    #     symbol_table='data/chars.txt',
    #     train_data='data/train/data.list',
    #     cv_data='data/dev/data.list',
    #
    #     train_engine='cpu',
    #     cmvn='data/cmvn.json',
    # )
    # utils_file.print_dict(vars(args))
    # utils_file.write_dict_to_yaml(vars(args), './argparse_run.yaml')
    args = utils_data.do_dict2simpleNamespaceObj(utils_file.load_dict_from_yaml('./argparse_run.yaml'))
    main(args)
    # print('gengxuelong')